package com.cdtye.shuoh.domain.rule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdtye.common.mybatiscore.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 规则信息表
 * @author 
 * @date 2023-03-03
 */
@ApiModel("规则信息表")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("IOT_RULE")
public class Rule extends BaseEntity {
    
    @ApiModelProperty(value = "规则标识")
    private String ruleIdentification;

    @ApiModelProperty(value = "规则名称")
    private String ruleName;

    @ApiModelProperty(value = "状态 0：禁用，1启用")
    private String state;

    @ApiModelProperty(value = "触发机制（0:全部，1:任意一个）")
    private String triggering;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "产品标识")
    private String productIdentification;

    @ApiModelProperty(value = "服务ID")
    private String serviceId;

    @ApiModelProperty(value = "规则类型：0：全部设备 1：指定设备")
    private String ruleType;

    @TableField(exist = false)
    private List<RuleConditions> conditionsList;

}